package com.sy.wz.demo.service;


import com.sy.wz.client.ucenter.User.UserClient;
import com.sy.wz.client.ucenter.User.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserClient userClient;

    public void saveOrUpdate(UserDto user) {
        userClient.saveOrUpdate(user);
    }

    public List<UserDto> list() {
        return userClient.list();
    }
}
